/*
Title: Practica 1 - Hola mundo en ARM ASSEMBLY         Filename: holamundo.s
Author: Cervantes Ahumada Alain                        Date: 2 - mar - 2017
Description: Hola mundo en Arm Assembly
Input: -
Output: Hola Mundo to console 
*/

@ holamundo.s
@ a template for asm programs
.data                  @store string and length int 2 variables
msg:
     .ascii "hello world int ARM by Alain Cervantes\n"
len = . - msg

.globl    _start
.section  .text
_start:
mov r0, $1
ldr r1, =msg      @pointer string to be printed in r1
ldr r2, =len      @length of string in r2
mov r7, $4        @prepare to output to console
swi $0            @wake kernel

mov r0, $0        @set the return value to 0
mov r7, $1        @exit syscall
svc $0            @wake kernel
